package com.ioc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpringIOC {

    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
        Boy boy=(Boy)applicationContext.getBean("boy");
        System.out.println(boy);

        Girl girl=applicationContext.getBean(Girl.class);
        System.out.println(girl);

    }



}
